projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05c4b29
)
Commit remaining piece of 'name magellan tracks after filename' change.
author
robertl
<robertl>
Sat, 1 Jul 2006 19:40:02 +0000
(19:40 +0000)
committer
robertl
<robertl>
Sat, 1 Jul 2006 19:40:02 +0000
(19:40 +0000)
magproto.c
patch
|
blob
|
history
diff --git
a/magproto.c
b/magproto.c
index 1c5e6a317108af2cbd80f7f0c2b19eba19a116ac..3cfdb0574647010ece15078df78fd841d1b2c9e1 100644
(file)
--- a/
magproto.c
+++ b/
magproto.c
@@
-825,6
+825,17
@@
mag_rd_init_common(const char *portname)
QUEUE_INIT(&rte_wpt_tmp);
+ /* find the location of the tail of the path name,
+ * make a copy of it, then lop off the file extension
+ */
+
+ curfname = strrchr(portname, '/');
+ if (curfname) {
+ curfname++; /* skip over path delimiter */
+ }
+
+
+
return;
}